<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改货位管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-space-edit" th:object="${basCargoSpace}">
<!--            <input name="cargoSpaceId" th:field="*{cargoSpaceId}" type="hidden">-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">货位编号：</label>
                <div class="col-sm-8">
                    <input name="cargoSpaceId" th:field="*{cargoSpaceId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属仓库：</label>
                <div class="col-sm-8">
                    <select name="warehouseId" class="form-control m-b" th:with="type=${@dict.getType('is_house')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">所属货区：</label>
                <div class="col-sm-8">
                    <select name="cargoAreaId" class="form-control m-b" th:with="type=${@dict.getType('cargo_area')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseId}"></option>
                    </select>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">类型名：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="theTypeName" th:field="*{theTypeName}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">货位名称：</label>
                <div class="col-sm-8">
                    <input name="cargoSpaceName" th:field="*{cargoSpaceName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排：</label>
                <div class="col-sm-8">
                    <input name="thePlatoon" th:field="*{thePlatoon}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">列：</label>
                <div class="col-sm-8">
                    <input name="theColumn" th:field="*{theColumn}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">层：</label>
                <div class="col-sm-8">
                    <input name="theFloor" th:field="*{theFloor}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('space_status')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:field="*{status}">
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">货位锁：</label>
                <div class="col-sm-8">
                    <select name="locked" class="form-control m-b" th:with="type=${@dict.getType('space_locked')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{locked}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">托盘编码：</label>
                <div class="col-sm-8">
                    <input name="trayCode" th:field="*{trayCode}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">是否双伸：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="issDouble" th:field="*{issDouble}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">同组货位：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="groupCodingNo" th:field="*{groupCodingNo}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">同组货位编码：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="groupCoding" th:field="*{groupCoding}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">双伸标识：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="cargoSpaceLogo" class="form-control m-b" th:with="type=${@dict.getType('space_ds')}">-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{cargoSpaceLogo}"></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">当前货区：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="thisCargoArea" th:field="*{thisCargoArea}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "device/space";
        $("#form-space-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-space-edit').serialize());
            }
        }
    </script>
</body>
</html>